package com.zs.leymovie.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

/**
 * Created by Administrator on 2015/8/8 0008.
 */
public class MovieFgAdapter extends FragmentPagerAdapter {

    private Fragment[] fgs;

    public MovieFgAdapter(FragmentManager fm, Fragment[] fgs) {
        super(fm);
        this.fgs = fgs;
    }

    @Override
    public Fragment getItem(int position) {
        return fgs[position];
    }

    @Override
    public int getCount() {
        return fgs.length;
    }
}
